package com.beijing.demo;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.Controller;

public class RequestController implements Controller {

	@Override
	public ModelAndView handleRequest(HttpServletRequest request,
			HttpServletResponse arg1) throws Exception {
		
		System.out.println("======RequestController==========");
		ModelAndView model = new ModelAndView();
		
		String message = "RequestController" ;
		request.setAttribute("message", message);
		model.setViewName("demo/req");
		
		return model;
	}

}
